Zeelam's Blog.

Spring Cloud的正确使用姿势1 - Spring Cloud的介绍

字数统计: 429阅读时长: 2 min
2019/04/30 Share

一些废话

相信大家都知道,Spring Cloud是什么,但是还是要废话一下:

Spring Cloud provides tools for developers to quickly build some of the common patterns in distributed systems (e.g. configuration management, service discovery, circuit breakers, intelligent routing, micro-proxy, control bus, one-time tokens, global locks, leadership election, distributed sessions, cluster state). Coordination of distributed systems leads to boiler plate patterns, and using Spring Cloud developers can quickly stand up services and applications that implement those patterns. They will work well in any distributed environment, including the developer’s own laptop, bare metal data centres, and managed platforms such as Cloud Foundry.

这段话是摘自Spring Cloud的Overview中的,抓住几个重点:

  • Spring Cloud provides tools
  • disstributed systems
  • quickly build

总结一下:Spring Cloud就是提供了一堆工具,这些工具(后面会一一提到)可以快速的帮助我们(程序猿🐒\媛👩)在分布式系统下搭建微服务

废话完毕,进入正题

Spring Cloud的各种工具

Spring Cloud 是一个大家族,这个家族包括了各种工具,以下列举一些常用的:

  • Spring Cloud Config
  • Spring Cloud Netflix
    • Eureka
    • Hystrix
    • Feign
    • Ribbon
    • Zuul
  • Spring Cloud Bus
  • Spring Cloud Security
  • Spring Cloud Sleuth
  • Spring Cloud Stream

除了以上列举的这些,其实还有Spring Cloud Consul、Spring Cloud Data Flow等各种工具

本文的目录

扯到了以上的各种工具,那就简单介绍一下他们是干什么的,顺便把本文的目录列出来,让大家对接下来的要学习的内容有整体的了解吧

  • 基础内容
    • Spring Cloud的介绍
    • 基础的基础 - Spring Boot
    • 注册和发现中心 - Eureka
    • 负载均衡 - Ribbon
    • 服务调用 - Feign
    • 熔断机制 - Hystrix
    • 路由机制 - Zuul
    • 配置中心 - Spring Cloud Config
    • 消息机制 - Spring Cloud Stream
    • 链路跟踪 - Spring Cloud Sleuth
  • 进阶内容
    • 其他注册和发现中心 - Consul
    • 容器化 - Docker
目录
  1. 1. 一些废话
  2. 2. Spring Cloud的各种工具
  3. 3. 本文的目录